// DVD Unit Test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "DVD.h"
#include "dbc.h"

int _tmain(int argc, _TCHAR* argv[])
{
	try 
		{
			DVD object;

			object.setMovieID(4000);
			object.setBarCode("ab123");
			object.setValidState(true);

			cout << object.getMovieID() << endl;
			cout << object.getBarCode() << endl;
			cout << object.getValidState() << endl;
			cout << object.getID() << endl;
			cout << endl;
		}

	catch (DesignByContractException & e)
	{
		cout << (string)e;
	}

	return 0;
}

